package com.zbs.framework.dao.userfunction.entity;

import com.zbs.framework.dao.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户功能
 */

@Entity
@Table(name = "mnt_user_function")
@Getter
@Setter
@NoArgsConstructor
public class UserFunction extends BaseEntity {

    /**
     * 用户Id
     */
    private Long userId;

    /**
     * 功能Id
     */
    private Long functionId;

    public UserFunction(Long userId, Long functionId) {
        this.userId = userId;
        this.functionId = functionId;
    }
}
